function validateForm() {
	var x=document.forms["contactForm"]["name"].value
	if (x==null || x=="") {
		alert("Please provide a name");
		return false;
	}
 		
	var x=document.forms["contactForm"]["email"].value
	if (x==null || x=="") {
		alert("Please provide a valid email address");
		return false;
	} else {
		var x=document.forms["contactForm"]["email"].value
		var atpos=x.indexOf("@");
		var dotpos=x.lastIndexOf(".");
		if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length) {
			alert("Please provide a valid email address");
			return false;
		}
	}
 		
	var x=document.forms["contactForm"]["message"].value
	if (x==null || x=="") {
		alert("You haven't written a message!");
		return false;
	}
}